package com.atguigu.security.custom;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * ClassName: UserDetailsService
 * Package: com.atguigu.security.custom
 * Description:
 *
 * @Author 蹇泽阳
 * @Create 2023/11/18 18:01
 * @Version 1.0
 */
public interface UserDetailsService {
  /**
   * 根据用户名获取用户对象（获取不到直接抛异常）
   */
  UserDetails loadUserByUsername(String username) throws UsernameNotFoundException;
}
